Add --verbose flag and enable debug logging#67
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a new
--verboseoption to the CLI, providing users with detailed output during project generation. When enabled, verbose mode surfaces additional insights about configuration, file operations, dependency injection, template compilation, and install durations, making the generation process more transparent and easier to debug.Verbose mode support:
--verboseCLI flag to the main program, and passed theverboseoption through all relevant functions and config objects (index.js,src/generate.js,src/dependencies.js). [1] [2] [3] [4] [5]Detailed output in project generation:
generateProject, added verbose logging for configuration details, template copy source and duration, file compilation counts and durations, install duration, and total generation time. [1] [2] [3] [4] [5] [6]Dependency resolution transparency:
resolveDependencies, verbose mode now lists each dynamically added dependency with its reason, and the final message includes a count of injected packages.These changes enhance the developer experience by making the project scaffolding process more observable and easier to troubleshoot.
Closes #46